<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>挂靠公司变更详情</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>

<head>
    <meta charset="UTF-8">
    <title>对比</title>
    <style type="text/css">
        .ctrlBar {
            padding-bottom: 10px;
            text-align: right;
        }

        .compareLay {
            position: relative;
        }

        .compareLay:before {
            content: '';
            position: absolute;
            left: 50%;
            top: 30px;
            bottom: 0;
            display: block;
            width: 1%;
            margin-left: -.5%;
            background: #4a9b5e;
            /*height: 100%;*/
            line-height: 0;
            font-size: 0;
            clear: both;
        }

        .compareLay:after {
            content: '';
            display: block;
            height: 0;
            line-height: 0;
            font-size: 0;
            clear: both;
        }

        .compareLay .halfLay {
            float: left;
            width: 49.5%;
        }

        .compareLay .halfLay2 {
            float: right;
        }
    </style>
</head>

<body class="iframeBody">
<div class="Wrapper">
    <div class="compareLay">
        <div class="ctrlBar">
            <input id="splId" style="display:none" value="${splBscInfoApplyVO.splId }">
            <!--  <span id="splInfo" class="sq-button sq-button-round">详情</span> -->
        </div>
        <div class="halfLay halfLay1">
            <div>
                <div class="fieldset1 tabel_col clearFix">
                    <div class="caption">
                        <span class="title">变更后</span>
                    </div>
                    <div class="fieldBox col_50">
                        <div class="label">挂靠公司名称</div>
                        <div class="field">
                            ${changeObj.aftLnkCompNm}
                        </div>
                    </div>
                    <div class="fieldBox col_50">
                        <div class="label">社会统一信用代码</div>
                        <div class="field">
                            ${changeObj.aftSucc }
                        </div>
                    </div>
                    <div class="fieldBox col_50">
                          <div class="label">注册地址</div>
                          <div class="field">
                          ${changeObj.aftRegAddr }
                          </div>
                      </div>
                      <div class="fieldBox col_50">
                          <div class="label">企业类型</div>
                          <div class="field">
                          ${changeObj.aftCompTyp }
                          </div>
                      </div>
                      <div class="fieldBox col_50">
                          <div class="label">经营范围</div>
                          <div class="field">
                          ${changeObj.aftBizScope }
                          </div>
                      </div>
                      <div class="fieldBox col_50">
                          <div class="label">可支持挂靠项目类型</div>
                          <div class="field">
                          ${changeObj.aftSuppPrjTypCd }
                          </div>
                      </div>
                    <div class="fieldBox col_50">
                        <div class="label">成立日期</div>
                        <div class="field">
                            <fmt:formatDate value="${changeObj.aftRegDt}" type="date" dateStyle="default"/>
                        </div>
                    </div>
                    <div class="fieldBox col_50">
                        <div class="label">道路运输许可证有效期</div>
                        <div class="field">
                            <fmt:formatDate value="${changeObj.aftExpDt}" type="date" dateStyle="default"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>社会关系/家庭成员</span>
                </div>
                <div class="sqPanel_body">
                    <div id="ligergrid_A1" class="sq-grid"></div>
                </div>
            </div>
            <%-- <div class="fieldset1 tabel_col clearFix">
                <div class="fieldBox col_100">
                    <div class="label">可支持流程</div>
                    <div class="field">
                        <c:forEach items="${splBiApplyFlowRlVOList }" var="splBiApplyFlowRlVO" begin="0" step="1"
                                   varStatus="status">
                            <input type="checkbox" readonly="readonly"
                                   <c:if test="${splBiApplyFlowRlVO.isDel!=1 }">checked="checked"</c:if>>
                            <span>${splBiApplyFlowRlVO.PDefKeynm }
				    		<c:if test="${splBiApplyFlowRlVO.PDefKey=='FLOW_00000001_007_001' && splBiApplyFlowRlVO.isDel!=1 }">
				    			<span>
					    			<span style="color: red;">支持不上牌资产数量</span>
					    			<span>
                                            ${splBiApplyFlowRlVO.flowNum }
                                    </span>台
				    			</span>
                            </c:if>
			    		</span><br/>
                        </c:forEach>
                    </div>
                </div>
            </div> --%>
        </div>
        <div class="halfLay halfLay2">
            <div>
                <div class="fieldset1 tabel_col clearFix">
                    <div class="caption">
                        <span class="title">变更前</span>
                    </div>
                    <div class="fieldBox col_50">
                        <div class="label">挂靠公司名称</div>
                        <div class="field">
                            ${changeObj.befLnkCompNm}
                        </div>
                    </div>
                    <div class="fieldBox col_50">
                        <div class="label">统一社会信用代码</div>
                        <div class="field">
                            ${changeObj.befSucc }
                        </div>
                    </div>
                    <div class="fieldBox col_50">
                          <div class="label">注册地址</div>
                          <div class="field">
                          ${changeObj.befRegAddr }
                          </div>
                      </div>
                      <div class="fieldBox col_50">
                          <div class="label">企业类型</div>
                          <div class="field">
                          ${changeObj.befCompTyp }
                          </div>
                      </div>
                      <div class="fieldBox col_50">
                          <div class="label">经营范围</div>
                          <div class="field">
                          ${changeObj.befBizScope }
                          </div>
                      </div>
                      <div class="fieldBox col_50">
                          <div class="label">可支持挂靠项目类型</div>
                          <div class="field">
                          ${changeObj.befSuppPrjTypCd }
                          </div>
                      </div>
                    <div class="fieldBox col_50">
                        <div class="label">成立日期</div>
                        <div class="field">
                            <fmt:formatDate value="${changeObj.befRegDt}" type="date" dateStyle="default"/>
                        </div>
                    </div>
                    <div class="fieldBox col_50">
                        <div class="label">道路运输许可证有效期</div>
                        <div class="field">
                            <fmt:formatDate value="${changeObj.befExpDt}" type="date" dateStyle="default"/>
                        </div>
                    </div>
                </div>
                <div class="sqPanel">
                    <div class="sqPanel_head inL">
                        <span>社会关系/家庭成员</span>
                    </div>
                    <div class="sqPanel_body">
                        <div id="ligergrid_B1" class="sq-grid"></div>
                    </div>
                </div>
              <%--   <div class="fieldset1 tabel_col clearFix">
                    <div class="fieldBox col_100">
                        <div class="label">可支持流程</div>
                        <div class="field">
                            <c:forEach items="${splBiApplyFlowRlVOList }" var="splBiApplyFlowRlVO" begin="0" step="1"
                                       varStatus="status">
                                <input type="checkbox" readonly="readonly"
                                       <c:if test="${splBiApplyFlowRlVO.isDelB!=1 }">checked="checked"</c:if>>
                                <span>${splBiApplyFlowRlVO.PDefKeyBnm }
				    		<c:if test="${splBiApplyFlowRlVO.PDefKeyB =='FLOW_00000001_007_001' && splBiApplyFlowRlVO.isDelB!=1 }">
                                <span style="color: red;">支持不上牌资产数量</span>
                                <span>
                                        ${splBiApplyFlowRlVO.flowNumB }
                                </span>台
                            </c:if>
			    		</span>
                            </c:forEach>
                        </div>
                    </div>
                </div> --%>
            </div>
        </div>
    </div>
    <script>
        var data = '${list}';
        var _lnkCompId = '${lnkCompId}'
        $(function () {
            var id = '${changeObj.id}';
            var certTypCdList = '${certTypCdList}';
            var rlRsnTypListJSON = '${rlRsnTypListJSON}';
            $("#ligergrid_A1").ligerGrid({
                usePager: false,
                url: '<%=path%>/project/prjLnkCompApply/initCompApplyList.do?id=' + id+'&lnkCompId='+_lnkCompId+'&type=aft',
                method: 'get',
                columns: [{
                    display: '姓名',
                    name: 'rlNm',
                    width: 120
                }, {
                    display: '证件类型',
                    name: 'certTypCdNm',
                    minWidth: 60,
                }, {
                    display: '证件号',
                    name: 'certNo',
                    width: 150,
                }, {
                    display: '关联类型',
                    name: 'rlTypCdNm',
                    minWidth: 120,
                }, {
                    display: '联系电话',
                    name: 'tel',
                    minWidth: 120,
                }],
                root: 'data',
                width: '100%',
                isScroll: false,
                rownumbers: true,
                onAfterShowData: function () {
                    SetIframe_height();
                }
            });

            $("#ligergrid_B1").ligerGrid({
                usePager: false,
                url: '<%=path%>/project/prjLnkCompApply/initCompApplyList.do?id=' + id+'&lnkCompId='+_lnkCompId+'&type=bef',
                method: 'get',
                columns: [{
                    display: '姓名',
                    name: 'rlNm',
                    width: 120
                }, {
                    display: '证件类型',
                    name: 'certTypCdNm',
                    minWidth: 60,
                }, {
                    display: '证件号',
                    name: 'certNo',
                    width: 150,
                }, {
                    display: '关联类型',
                    name: 'rlTypCdNm',
                    minWidth: 120,
                }, {
                    display: '联系电话',
                    name: 'tel',
                    minWidth: 120,
                }],
                root: 'data',
                width: '100%',
                isScroll: false,
                rownumbers: true,
                onAfterShowData: function () {
                    SetIframe_height();
                }
            });

            //供应商链接
            $("#splInfo").click(function (event) {
                var id = $("#splId").val();
                Add_navTab('spl_bsc_info' + id, '供应商信息', '<%=path%>/product/splInfo/toDetailPage.do?id=' + id + '&splAttrCd=2&ischange=0');
            });

        });

        function renderDate(rowdata, index, value) {
            var dateStr = "";
            if (null != value) {
                var date = new Date(value);
                dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DDHHMMSS);
            }
            return dateStr;
        }

    </script>
</body>

</html>
